<?php
include "../phpAdmin.php";
$PHPAdmin = new PHPAdmin();	

$id 			= $_POST["id"];
$id_incidente 	= $_POST["id_incidente"];
$solucao		= $_POST["solucao"];

$sql = "UPDATE helpdesk_solucao SET id_chamados='$id_incidente', descricao='$solucao' WHERE id='$id'";
mysql_query($sql) or die ("<br><br>ERRO: " . mysql_errno() . ": " . mysql_error() . "<br><br>");

print "
		<script>
			alert('Alterado com sucesso!');
			window.location.href = '../chamados.php';
		</script>		
		";
?>